﻿using System;

namespace IsPrimeNumber
{
    class IsPrimeNumber
    {
        static void Main()
        {
            Console.Write("Enetr number: ");
            int num = int.Parse(Console.ReadLine());  //Read number

            bool isPrime = true;

            for (int i = 2; i < Math.Sqrt(num); i++)
            {
                if (num % i == 0) 
                {
                    isPrime = false;
                }
            }
            Console.WriteLine("The number you entered is prime : {0}", isPrime); //Print result
        }
    }
}
